#include<bits/stdc++.h>
using namespace std;


int main(){
ios::sync_with_stdio(0);
freopen("circ.in","r",stdin);
freopen("circ.out","w",stdout); 
int t; cin>>t;
while(t --) {
	int n; cin>>n;
	cout<<n-1<<"\n";
}
return 0;
}

